package com.example.user.mapper;


import com.example.user.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {

    List<Product> productSelectPage();

    List<Product> searchByName(@Param("name") String name);

    List<Product> searchByCategory(@Param("category") String category);
}
